﻿using MyCode.Project.Services;
using Quartz;
namespace MyCode.Project.ScheduleTask.Jobs
{
    public class QueueJob : IJob
    {

        private readonly IQueueProcessService _queueProcessService;

        public QueueJob(IQueueProcessService queueProcessService)
        {
            _queueProcessService = queueProcessService;
        }


        public void Execute(IJobExecutionContext context)
        {
            _queueProcessService.Execute();
        }
    }
}
